/**
 * 
 */
package com.zito.web.www;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


import com.downlove.common.RequestContext;
import com.downlove.template.freemarker.FreeMarkerEngine;
import com.zito.manager.ArticleManager;
import com.zito.manager.ColumnManager;
import com.zito.manager.ContributeManager;
import com.zito.manager.WeblinkManager;

/**
 * @author YunHai-Home
 *
 */
public class Search {
	
	public void index(HttpServletRequest request, HttpServletResponse response) {
		FreeMarkerEngine fm = new FreeMarkerEngine(request, response);
		RequestContext rc = RequestContext.get();
		String key = rc.param("searchKey", "");
		fm.put("searchKey", key);
		fm.put("columnMgr", new ColumnManager());
		fm.put("articleMgr", new ArticleManager());
		fm.put("linkMgr", new WeblinkManager());
		fm.put("contributemgr", new ContributeManager());
		FreeMarkerEngine.action(fm, "www/Search.html");
	}

}
